namespace com.ytocargo.EntityFramework.SecondMigrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class addCharts : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.CHART",
                c => new
                    {
                        CHARTID = c.String(nullable: false, maxLength: 50),
                        AIRPORTICAO = c.String(maxLength: 4),
                        AIRPORTIATA = c.String(maxLength: 3),
                        CITYNAME = c.String(maxLength: 50),
                        AIRPORTNAME = c.String(maxLength: 50),
                        VALIDFROM = c.DateTime(),
                        VALIDUNTIL = c.DateTime(),
                        FILEPATH = c.String(maxLength: 200),
                        CHARTNAME = c.String(maxLength: 200),
                        FILESIZE = c.Long(nullable: false),
                        CHARTTYPEEX_CH = c.String(),
                        MD5 = c.String(),
                        AD_HP_ID = c.String(),
                        PAGE_NUMBER = c.String(),
                        SUP_REF_CHARTID = c.String(),
                    })
                .PrimaryKey(t => t.CHARTID);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.CHART");
        }
    }
}
